import { Component, OnInit } from '@angular/core';
import {ActivatedRoute} from "@angular/router";

@Component({
  selector: 'app-sousuo',
  templateUrl: './sousuo.component.html',
  styleUrls: ['./sousuo.component.css']
})
export class SousuoComponent implements OnInit {
  imga: string;
  deprict: string;
  pricea: string

  constructor(private getIn: ActivatedRoute) { }

  ngOnInit() {
    this.getIn.params.subscribe((data) => {
      this.imga = data.imgs;
      this.deprict = data.depict;
      this.pricea = data.price;
    });
  }

}
